ARCH = arm
CROSS_COMPILE = arm-linux-gnueabi-
ADDR2LINE = $(CROSS_COMPILE)addr2line
AR = $(CROSS_COMPILE)ar
AS = $(CROSS_COMPILE)as
ELFEDIT = $(CROSS_COMPILE)efledit
G++ = $(CROSS_COMPILE)g++
CC = $(CROSS_COMPILE)gcc 
GCC = $(CROSS_COMPILE)gcc 
GPROF = $(CROSS_COMPILE)gprof
LD =  $(CROSS_COMPILE)ld
NM = $(CROSS_COMPILE)nm
OBJCOPY = $(CROSS_COMPILE)objcopy 
OBJDUMP = $(CROSS_COMPILE)objdump
RANLIB = $(CROSS_COMPILE)ranlib
READELF = $(CROSS_COMPILE)readelf
SIZE = $(CROSS_COMPILE)size
STRINGS = $(CROSS_COMPILE)strings
STRIP = $(CROSS_COMPILE)strip
TARGET_PREFIX=arm-linux-gnueabi-

#--rpath-link只在编译链接时有效，运行是就在LD_LIBRARY_PATH中寻找链接库
LIBS_ELDKPATH = -Wl, --rpath-link /opt/ELDK-4.2/arm/lib

export ARCH CROSS_COMPILE ADDR2LINE AR AS ELFEDIT G++ CC GCC GPROF LD NM OBJCOPY OBJDUMP RANLIB READELF SIZE STRINGS STRIP TARGET_PREFIX

export PATH:=/opt/ELDK-4.2/usr/bin:/opt/ELDK-4.2/bin:${PATH}
